﻿@using RBS.Core.Extension
@model RBS.Admin.Models.Hotel
@{
    ViewBag.Title = "HotelView";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<!--导航栏-->
<div class="location">
    <a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
    <a href="../center.aspx" class="home"><i></i><span>首页</span></a>
    <i class="arrow"></i>
    <span>酒店详细信息</span>
</div>
<div class="line10"></div>
<!--/导航栏-->
<!--内容-->
<div class="content-tab-wrap">
    <div id="floatHead" class="content-tab">
        <div class="content-tab-ul-wrap">
            <ul>
                <li><a href="javascript:;" onclick="tabs(this);" class="selected">基本信息</a></li>
                <li><a href="javascript:;" onclick="tabs(this);">认证信息</a></li>
                <li><a href="@Url.Action("CouponsList", "Coupons", new { area = "DeedAdmin",hid=Model.Hotels.H_id })" onclick="tabs(this);">酒店活动</a></li>
            </ul>
        </div>
    </div>
</div>
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(false)
    <!--酒店基本信息-->
    <div class="tab-content">
        <dl>
            <dt>酒店名称</dt>
            <dd>
                @Html.DisplayFor(model => model.Hotels.H_Name)

                <span class="Validform_checktip">*酒店名称</span>
            </dd>
        </dl>
        <dl>
            <dt>酒店地址</dt>
            <dd>
                @Html.DisplayFor(model => model.Hotels.Address)

                <span class="Validform_checktip">*酒店地址</span>

            </dd>
        </dl>
        <dl>
            <dt>联系电话</dt>
            <dd>
                @Html.DisplayFor(model => model.Hotels.Telphone)



            </dd>
        </dl>
        <dl>
            <dt>联系手机</dt>
            <dd>
                @Html.DisplayFor(model => model.Hotels.Mobile)



            </dd>
        </dl>
        <dl>
            <dt>菜系</dt>
            <dd>
                @Html.DisplayFor(model => model.Hotels.Cuisine)

                <span class="Validform_checktip">*菜系</span>

            </dd>
        </dl>
        <dl>
            <dt>位置</dt>
            <dd>

                @{
    var location = Model.Hotels.Location.Split(',');
    var lng = location[0];
    var lat = location[1];
    var staticimageUrl = "http://api.map.baidu.com/staticimage?center=" + lng + ',' + lat + "&markers=" + lng + ',' + lat; 
                }
                <img src="@staticimageUrl"/>

            </dd>
        </dl>
        <dl>
            <dt>停车位</dt>
            <dd>
                @Html.DisplayFor(model => model.Hotels.Parking)
                <span class="Validform_checktip">个</span>

            </dd>
        </dl>

        <dl>
            <dt>餐具是否免费</dt>
            <dd>
                <div class="rule-multi-radio">
                    <label for="watermarktype">否</label>
                    @Html.RadioButtonFor(model => model.Hotels.Cutlery, 0, new { @id = "radio1", @name = "rdolstState" })
                    <label for="watermarktype">是</label>
                    @Html.RadioButtonFor(model => model.Hotels.Cutlery, 1, new { @id = "radio2", @name = "rdolstState" })
                </div>

            </dd>
        </dl>
        <dl>
            <dt>有无wifi</dt>
            <dd>
                <div class="rule-multi-radio">
                    <label for="watermarktype">无</label>
                    @Html.RadioButtonFor(model => model.Hotels.WIFI, 0, new { @id = "radio1", @name = "rdolstState" })
                    <label for="watermarktype">有</label>
                    @Html.RadioButtonFor(model => model.Hotels.WIFI, 1, new { @id = "radio2", @name = "rdolstState" })
                </div>


            </dd>
        </dl>

        <dl>
            <dt>特色描述</dt>
            <dd>

                @Html.TextAreaFor(model => model.Hotels.Feature, 5, 105, new { @class = "input normal" })


            </dd>
        </dl>
        <dl>
            <dt>促销描叙</dt>
            <dd>

                @Html.TextAreaFor(model => model.Hotels.Promotional, 5, 105, new { @class = "input normal" })


            </dd>
        </dl>
    </div>
    <!--/酒店基本信息--> 

    <!--酒店认证信息-->
    <div class="tab-content" style="display: none">
        @{
            if (Model.Certification == null)
            {
                  <dl>
            <dt></dt>
            <dd>
             该酒店无认证。
            </dd>
        </dl>
            }
            else
            {
                 <dl>
            <dt>是否认证</dt>
            <dd>
                <div class="rule-multi-radio">
                    <label for="watermarktype">是</label>
                    @Html.RadioButtonFor(model => model.Certification.IsCertification, 1, new { @id = "radio1", @name = "rdolstState" })
                    <label for="watermarktype">否</label>
                    @Html.RadioButtonFor(model => model.Certification.IsCertification, 0, new { @id = "radio2", @name = "rdolstState" })
                </div>

            </dd>
        </dl>
        <dl>
            <dt>认证时间</dt>
            <dd>
                @Html.DisplayFor(model => model.Certification.CertificationTime, string.Format("{0:yyyy-MM-dd}", Model.Certification.CertificationTime)) 
            </dd>
        </dl>

        <dl>
            <dt>认证金</dt>
            <dd>
                @Html.TextBoxFor(model => model.Certification.CertificationMoney, null, new { @class = "input small" })
                <span class="Validform_checktip">元</span> 
            </dd>
        </dl>
            }
             
        } 
       
        <dl>
            <dt>营业执照</dt>
            <dd>
                <img src="http://hotel.rbs.com/@Model.Hotels.License"  width="300"/>
             
            </dd>
        </dl>
    </div>
    <!--/酒店认证信息-->
 

    <!--/内容-->

    <!--工具栏-->
@*    <div class="page-footer">
        <div class="btn-list">
            $1$ <input type="submit" value="提交保存"  class="btn"/>  #1#
            <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript: history.back(-1);" />
        </div>
        <div class="clear"></div>
    </div>*@
    <!--/工具栏-->
}